package com.poh.mapper;
import com.poh.pojo.Homework;
import com.poh.pojo.QuestionBank;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface QuestionBankMapper {
    int addQuestionBank(QuestionBank questionBank);
    int updateQuestionBank(QuestionBank questionBank);
    int deleteQuestionBank(@Param("questionBankId") String questionBankId);
    List<QuestionBank> queryQuestionBankByCourseId(@Param("courseId") int courseId);
    QuestionBank queryQuestionBankById(@Param("questionBankId") String questionBankId);
}
